import request from '@/utils/request'

export function details(data) {
  return request({
    url: 'admin/cmd/v1/detail',
    method: 'post',
    data
  })
}

export function deletes(data) {
  return request({
    url: 'admin/cmd/v1/detail',
    method: 'delete',
    data
  })
}

export function get(id) {
  return request({
    url: 'admin/cmd/v1/detail/' + id,
    method: 'get'
  })
}

export function saveOrUpdate(data) {
  return request({
    url: 'admin/cmd/v1/detail',
    method: 'put',
    data
  })
}
